#ifndef PALETTE_SCENE_H
#define PALETTE_SCENE_H

#include <QGraphicsScene>

class PaletteShower;
class PaletteScene : public QGraphicsScene
{
Q_OBJECT
public:
    explicit PaletteScene(QObject *parent = nullptr);
    ~PaletteScene() override;
    uint8_t pickedColorIndex = 0;
    uint8_t passedColorIndex = 0;
    void SetPalette(PaletteShower *palette_);
private:
    PaletteShower *palette = nullptr;
    void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
};

#endif //PALETTE_SCENE_H
